package com.cjf.demo.spring.jmsdemo;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.TextMessage;

public class DemoMessageListener {

    public void onMessage(Message message) {
        try {
            System.out.println(((TextMessage) message).getText());
        } catch (JMSException e) {}
    }
}
